package com.xiti.student.base.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 省份城市数据
 * </p>
 *
 * @author tangz
 * @since 2018-06-14
 */
@ApiModel(value = "BasDistrict", description = "省份城市数据")
@TableName("BasDistrict")
public class BasDistrict implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(name = "active", value = "是否当前版本", dataType = "Integer", notes = "")
    private Integer active;

    @ApiModelProperty(name = "adLat", value = "高德地址纬度", dataType = "String", notes = "")
    @TableField("adLat")
    private String adLat;

    @ApiModelProperty(name = "adLng", value = "高德地址经度", dataType = "String", notes = "")
    @TableField("adLng")
    private String adLng;

    @ApiModelProperty(name = "code", value = "code", dataType = "String", notes = "")
    private String code;

    @ApiModelProperty(name = "createdAt", value = "创建时间", dataType = "Date", notes = "")
    @TableField("createdAt")
    private Date createdAt;

    @ApiModelProperty(name = "creatorCode", value = "创建人code", dataType = "String", notes = "")
    @TableField("creatorCode")
    private String creatorCode;

    @ApiModelProperty(name = "creatorName", value = "创建人name", dataType = "String", notes = "")
    @TableField("creatorName")
    private String creatorName;

    @ApiModelProperty(name = "creatorOrgCode", value = "创建人所属部门", dataType = "String", notes = "")
    @TableField("creatorOrgCode")
    private String creatorOrgCode;

    @ApiModelProperty(name = "deleted", value = "软删除标记", dataType = "Long", notes = "")
    private Long deleted;

    @ApiModelProperty(name = "enabled", value = "是否启用", dataType = "Integer", notes = "")
    private Integer enabled;

    @ApiModelProperty(name = "lastModifiedAt", value = "最近修改时间", dataType = "Date", notes = "")
    @TableField("lastModifiedAt")
    private Date lastModifiedAt;

    @ApiModelProperty(name = "levelType", value = "省份城市的等级", dataType = "Integer", notes = "")
    @TableField("levelType")
    private Integer levelType;

    @ApiModelProperty(name = "modifierCode", value = "最近修改人code", dataType = "String", notes = "")
    @TableField("modifierCode")
    private String modifierCode;

    @ApiModelProperty(name = "modifierName", value = "最近修改人name", dataType = "String", notes = "")
    @TableField("modifierName")
    private String modifierName;

    @ApiModelProperty(name = "modifierOrgCode", value = "修改人所属部门", dataType = "String", notes = "")
    @TableField("modifierOrgCode")
    private String modifierOrgCode;

    @ApiModelProperty(name = "name", value = "门店费用类别名称", dataType = "String", notes = "")
    private String name;

    @ApiModelProperty(name = "pCode", value = "地区信息 存储上级的code", dataType = "String", notes = "")
    @TableField("pCode")
    private String pCode;

    @ApiModelProperty(name = "version", value = "版本号", dataType = "Integer", notes = "")
    @Version
    private Integer version;



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getActive() {
        return active;
    }

    public void setActive(Integer active) {
        this.active = active;
    }

    public String getAdLat() {
        return adLat;
    }

    public void setAdLat(String adLat) {
        this.adLat = adLat;
    }

    public String getAdLng() {
        return adLng;
    }

    public void setAdLng(String adLng) {
        this.adLng = adLng;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public String getCreatorCode() {
        return creatorCode;
    }

    public void setCreatorCode(String creatorCode) {
        this.creatorCode = creatorCode;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public String getCreatorOrgCode() {
        return creatorOrgCode;
    }

    public void setCreatorOrgCode(String creatorOrgCode) {
        this.creatorOrgCode = creatorOrgCode;
    }

    public Long getDeleted() {
        return deleted;
    }

    public void setDeleted(Long deleted) {
        this.deleted = deleted;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    public Date getLastModifiedAt() {
        return lastModifiedAt;
    }

    public void setLastModifiedAt(Date lastModifiedAt) {
        this.lastModifiedAt = lastModifiedAt;
    }

    public Integer getLevelType() {
        return levelType;
    }

    public void setLevelType(Integer levelType) {
        this.levelType = levelType;
    }

    public String getModifierCode() {
        return modifierCode;
    }

    public void setModifierCode(String modifierCode) {
        this.modifierCode = modifierCode;
    }

    public String getModifierName() {
        return modifierName;
    }

    public void setModifierName(String modifierName) {
        this.modifierName = modifierName;
    }

    public String getModifierOrgCode() {
        return modifierOrgCode;
    }

    public void setModifierOrgCode(String modifierOrgCode) {
        this.modifierOrgCode = modifierOrgCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getpCode() {
        return pCode;
    }

    public void setpCode(String pCode) {
        this.pCode = pCode;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "BasDistrict{" +
        ", id=" + id +
        ", active=" + active +
        ", adLat=" + adLat +
        ", adLng=" + adLng +
        ", code=" + code +
        ", createdAt=" + createdAt +
        ", creatorCode=" + creatorCode +
        ", creatorName=" + creatorName +
        ", creatorOrgCode=" + creatorOrgCode +
        ", deleted=" + deleted +
        ", enabled=" + enabled +
        ", lastModifiedAt=" + lastModifiedAt +
        ", levelType=" + levelType +
        ", modifierCode=" + modifierCode +
        ", modifierName=" + modifierName +
        ", modifierOrgCode=" + modifierOrgCode +
        ", name=" + name +
        ", pCode=" + pCode +
        ", version=" + version +
        "}";
    }
}
